﻿using Bricks.Data;
using NHibernate;

namespace Bricks.NHibernate.Data
{

    /// <summary>
    /// 
    /// </summary>
    public abstract class SessionFacadeFactoryBase : DisposableFacadeBase<ISessionFactory>, IContextFacadeFactory
    {

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sessionFactory"></param>
        protected SessionFacadeFactoryBase(ISessionFactory sessionFactory) :
            base(sessionFactory)
        {
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public abstract IContextFacade Create();
    }
}
